package stc.skymobi.unit.cmds;

import java.lang.management.ManagementFactory;

import javax.management.JMX;
import javax.management.ObjectName;

import stc.skymobi.unit.UnitAdminMXBean;

public class UnitCmds {
    public static UnitAdminMXBean getUnitAdmin() throws Exception {
		return JMX.newMXBeanProxy(
				ManagementFactory.getPlatformMBeanServer(), 
				ObjectName.getInstance("stc.skymobi:name=unitAdmin"), 
				UnitAdminMXBean.class);
    }
}
